# Rules for making the library.
#
# $Id: Rules.mk,v 1.1.1.1 2003/02/14 22:05:58 root Exp $
#

# set to the top-level distribution directory

TOP=/home/sabari/courseworks/SINE/irt-manhattan/mptcp_userland_0.1

LINUXROOT=/home/sabari/courseworks/SINE/middleware/mptcp_userland_0.1/linux-headers-2.6.17-10
#$(TOP)/linux-headers-2.6.17-10

CAP = $(TOP)/capture
PCAP = $(CAP)/libpcap-1.0.0

MAKE		= make
CC              = gcc -g
C++		= g++
OPT		= -O2 -D_REENTRANT -D__TEST_NO_CHECKSUMS -DULTCP

WARN		= 
# -Wall -Wno-unused
DEBUG		= -g -DNDEBUG
INCLUDES        = -I. -I$(TOP)/src/sysinclude -I$(LINUXROOT)/include  \
		-I$(PCAP) -I$(CAP) -I$(PCAP)/bpf -I$(PCAP)/lbl -I$(TOP)/src/global_socket -I$(TOP)/../include

CFLAGS  = -shared -fPIC $(DEBUG) $(OPT) $(INCLUDES)

%.d: %.c
	$(SHELL) -ec '$(CC) -M $(CFLAGS) $< \
		| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@'

default: all


# end of $RCSFile$
